package com.project.service.sellCountService.impl;

import com.project.bean.*;
import com.project.mapper.sellCountMapper.ISellCountMapper;
import com.project.service.sellCountService.ISellCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
import java.util.List;

@Service
@Transactional
public class SellCountServiceImpl implements ISellCountService {
    @Autowired
    private ISellCountMapper sellCountMapper;


    @Override
    public List<StoreCountBean> findGoodsNumByType(String year, String month, int storeId) {
        return sellCountMapper.findGoodsNumByType(year, month, storeId);
}

    @Override
    public List<StoreCountBean> findServeNumByType(String year, String month, int storeId) {
        return sellCountMapper.findServeNumByType(year, month, storeId);
    }

    @Override
    public List<ManagerCountBean> findAllGoodsByYear(String year) {
        return sellCountMapper.findAllGoodsByYear(year);
    }


    @Override
    public List<ManagerCountBean> findAllServeByYear(String year) {
        return sellCountMapper.findAllServeByYear(year);
    }

    @Override
    public List<ManagerCityCountBean> findAllGoodsByCity(String year) {
        return sellCountMapper.findAllGoodsByCity(year);
    }


    @Override
    public List<ManagerCityCountBean> findAllServeByCity(String year) {
        return sellCountMapper.findAllServeByCity(year);
    }

}
